package com.coocaa.ops.plus.core.third.dmp;

import com.coocaa.ops.plus.core.third.constant.FeignClientNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;
import java.util.Map;

/**
 * @author tangminghong
 * @date 2020-06-17
 */
@FeignClient(name = FeignClientNameConstants.MAGIC_SERVICE)
public interface DmpFeignClient {

    /**
     * 获取dmp策略信息
     *
     * @param params
     * @return
     */
    @RequestMapping("/launch/policy/list")
    String getDmpPolicyList(URI uri, @RequestParam Map<String, String> params);


    /**
     * 获取dmp人群信息
     *
     * @param params
     * @return
     */
    @RequestMapping("/crowd/list")
    String getCrowdList(URI uri, @RequestParam Map<String, String> params);
}
